#include <head.h>
#define err "Wrong dir! Please check!"
// #include ""

char* substring(char* ch,int pos,int length);
void searchTableData(MYSQL mysql, char *column, char *Tname, char *where, int* id);
int addTableData(MYSQL *mysql, char *Tname, char *field, char *value);

void cdTable(MYSQL *mysql, int userid, int peerfd, char* pwd);
void typeCheck(int peerfd, int id);
void userCheck(int peerfd, int userid, int id);
